package com.xdb.sqlparser.dialect.mysql.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.ast.statement.SQLAlterTableItem;
import com.xdb.sqlparser.dialect.mysql.ast.MySqlObjectImpl;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlAlterTableCharacter extends MySqlObjectImpl implements SQLAlterTableItem {

	private SQLExpr characterSet;
	private SQLExpr collate;

	@Override
	public void accept0(MySqlASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, characterSet);
			acceptChild(visitor, collate);
		}
		visitor.endVisit(this);
	}

	public SQLExpr getCharacterSet() {
		return characterSet;
	}

	public void setCharacterSet(SQLExpr characterSet) {
		this.characterSet = characterSet;
	}

	public SQLExpr getCollate() {
		return collate;
	}

	public void setCollate(SQLExpr collate) {
		this.collate = collate;
	}

}
